﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
using System.Drawing;
using System.Windows.Forms;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using Styx.Logic.POI;

namespace HarmoniousVigor
{
    public partial class Warlock
    {
        public bool afflictionCombat()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (afflictionPVPCombat())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (afflictionDungeonCombat())
                    return true;
            }
            else
            {
                if (afflictionQuestingCombat())
                    return true;
            }

            return false;
        }
        public bool afflictionHeal()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (afflictionPVPHeal())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (afflictionDungeonHeal())
                    return true;
            }
            else
            {
                if (afflictionQuestingHeal())
                    return true;
            }

            return false;
        }
        public bool afflictionBuff()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (afflictionPVPBuff())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (afflictionDungeonBuff())
                    return true;
            }
            else
            {
                if (afflictionQuestingBuff())
                    return true;
            }

            return false;
        }
        public bool afflictionPullSpell()
        {
            if (Battlegrounds.IsInsideBattleground)
            {
                if (afflictionPVPPullSpell())
                    return true;
            }
            else if (characterPlayer.IsInInstance)
            {
                if (afflictionDungeonPullSpell())
                    return true;
            }
            else
            {
                if (afflictionQuestingPullSpell())
                    return true;
            }

            return false;
        }
    }
}
